package o;

import com.huawei.hianalytics.v2.HiAnalytics;
import java.util.LinkedHashMap;

public class ese {
    private static boolean ˋ = true;

    private static boolean ˏ() {
        return ˋ;
    }

    public static void ˊ(boolean z) {
        ˋ = z;
    }

    @Deprecated
    public static void ˋ(esb o_esb, String... strArr) {
        if (o_esb == null) {
            Logger.ˋ("OperationApi", "onEvent Failed;dataHandler is null.");
        } else {
            ˋ(o_esb.ˏ(), o_esb.ॱ(strArr));
        }
    }

    public static void ˋ(String str, LinkedHashMap<String, String> linkedHashMap) {
        if (ˋ()) {
            HiAnalytics.onEvent(1, str, (LinkedHashMap) linkedHashMap);
        }
    }

    public static void ˎ() {
        if (!ˏ()) {
            ˊ(true);
        } else if (diu.ˊ().ˎ()) {
            HiAnalytics.onReport();
        } else {
            Logger.ˎ("OperationApi", "has not agree protocol");
        }
    }

    private static boolean ˋ() {
        return ˏ() && diu.ˊ().ˎ();
    }
}
